home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / nansi30.zip / RAW.H < prev   
Text File  |  1990-07-14  |  1KB  |  35 lines

  1. /*--------------------------------------------------------------------------
  2.  Include file for users of raw.c.
  3.  For details, see raw.c.
  4.  $Log:    raw.h $
  5.  * Revision 1.2  90/07/14  09:00:55  dan_kegel
  6.  * Added raw_set_stdio(), which should make it easy to use RAW mode.
  7.  * 
  8.  * Revision 1.1  90/07/09  23:11:39  dan_kegel
  9.  * Initial revision
  10.  * 
  11. --------------------------------------------------------------------------*/
  12.  
  13. /* Call this routine with raw=1 at the start of your program;
  14.  * call it with raw=0 when your program terminates.
  15.  * If raw=1, sets stdin and stdout to RAW mode, disables break checking,
  16.  * and turns off line buffering on stdin.
  17.  * If raw=0, sets stdin and stdout back to non-RAW mode, and restores break
  18.  * checking to its previous state.
  19.  */
  20. void raw_set_stdio(int raw);
  21.  
  22. /* A replacement for kbhit().
  23.  * Check for char on stdin.  Returns nonzero if one is waiting, 0 if not.
  24.  * If stdin is RAW, and break checking is off, then this won't kill
  25.  * your program when the user types ^C (unlike the kbhit() that comes
  26.  * with MSC).
  27.  */
  28. int raw_kbhit(void);
  29.  
  30. /* Building-block routines.  See raw.c for documentation. */
  31. int raw_get(int fileno);
  32. void raw_set(int fileno, int raw);
  33. int break_get(void);
  34. void break_set(int check);
  35.